<div class="nv-dialog">
  <div class="d-flex justify-content-between align-items-center">
    <h4 mat-dialog-title class="mb-2">
      {{'admissionControl.EXPORT' | translate}}
    </h4>
    <button (click)="onCancel()" class="mb-2" aria-label="Close dialog" mat-icon-button>
      <i class="eos-icons ">close</i>
    </button>
  </div>
  <hr class="fancy mb-2" />
  <form (ngSubmit)="submitExport()" [formGroup]="exportForm">
    <div>
      <mat-checkbox class="mx-3" formControlName="isIncludingConfig">
        {{ 'admissionControl.CONFIG' | translate}}
      </mat-checkbox>
    </div>
    <div>
      <app-loading-button
        [appearance]="'mat-raised-button'"
        [color]="'primary'"
        [disabled]="!(exportForm.controls.isIncludingConfig.value || data.selectedAdmissionRules)"
        [loading]="submittingForm"
        [text]="'admissionControl.DOWNLOAD' | translate"
        [type]="'submit'"
        class="pull-right ml-auto"
      >
      </app-loading-button>
    </div>
  </form>
</div>
